package o;

import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.agwebview.api.ui.IWebViewFragmentProtocol;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import o.chh.e;

public class emw$a implements e {
    public Fragment ˎ(chx o_chx) {
        fjb ˎ = fho.ˏ().ˋ("AGWebView").ˎ("webview_fragment");
        IWebViewFragmentProtocol iWebViewFragmentProtocol = (IWebViewFragmentProtocol) ˎ.ˊ();
        String ˋ = o_chx.ˋ();
        if (ˋ != null) {
            Object substring = ˋ.substring(ˋ.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR) + 1);
            if (!TextUtils.isEmpty(substring)) {
                iWebViewFragmentProtocol.setUrl(substring);
            }
        }
        return fjm.ˏ(fiu.ˊ().ˋ(ContentManager.getInstant().getContext(), ˎ)).ˏ();
    }
}
